package com.dabai.iot.core.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dabai.iot.core.entity.AlarmListenerEntity;

/**
 * 告警监听条件 Service 接口
 *
 * @author kev1n
 */
public interface IAlarmListenerService extends IService<AlarmListenerEntity> {

    /**
     * 获取告警配置关联的监听器
     */
    AlarmListenerEntity getAlarmListenerCacheByAlarmId(Long alarmId);

    /**
     * 删除监听器并删除缓存
     */
    void removeAlarmListener(Long alarmId);

}
